<?php
	

defined('_JEXEC') or die('Restricted access'); 

$height_msg = '500px';
$width_msg = '400px';

$itemid = JRequest::getVar('Itemid', 0, '', 'int');
$layout = JRequest::getVar('layout', '', '', 'str');

$row=$this->lieu;

?>
<table class="blog<?php echo $this->params->get('pageclass_sfx');?>" cellpadding="0" cellspacing="0">
    <tr>
        <td valign="top">
            <table class="nbeventmap_detail">
                <tr>
                    <td class="nbeventmap_largeur_titre"><h2><?php echo $row->nom; ?></h2></td>
                    <?php
						
						if (($layout!='article')&&($layout!='categorie')) {
							echo '<td><h4>('.$row->title.')</h4></td><br>';
						};
                    ?>
                </tr>
            </table>
            <table class="nbeventmap_detail2">
                <tr>
                     <td class="nbeventmap_taille2">
                     <div>
						<?php 
								if($row->url_video != null) {										
									$urlId = $row->url_video;
									$url_link = 'http://www.youtube.com/v/'.$urlId.'?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1<strong>&start=155</strong>';
									?>
									<object width="560" height="340"><param name="movie" 
									value="http://www.youtube.com/v/FzgJ6Mkkd-w?fs=1&amp;hl=en_US&amp;rel=0&amp;hd=1<strong>&start=155</strong>"></param>
									<param name="allowFullScreen" value="true"></param>
									<param name="allowscriptaccess" value="always"></param>
									<embed src="<?php echo $url_link;?>" 
									type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="250"></embed></object>
									<?php } 
									else { ?>
								<img src="<?php echo JURI::root();?>media/netbase/icon/no-video.jpg" height="250" width="300"/>
						<?php } ?>
                       
                      </div>  
                    </td>
                    <td style="vertical-align: top; padding-left: 10px;">
                        <?php
                        if ($row->ville!=null) {echo '<b>'.JText::_('NBEVENTMAP_VILLE').'</b>'.$row->ville.'<br />';};
                        if ($row->pay!=null) {echo '<b>'.JText::_('NBEVENTMAP_PAYS').'</b>'.'<span>'.$row->pay.'</span><br />';};
                        if (($row->start_date!=null) && ($row->end_date!=null)) {
                        	$date_str = date("d-M-Y",strtotime($row->start_date)) . ' to ' . date("d-M-Y",strtotime($row->end_date));
                        	echo '<b>'.JText::_('Date:&nbsp;').'</b>'.$date_str.'<br />';
                        }
                        if($row->intro != null) {echo '<br>' . $row->intro;} 
                        ?>
                    </td>
                </tr>
            </table>
           
        </td>
    </tr>
</table>